Optimal. Leaf size=213 \[ \frac{2 \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right ),\frac{a+b}{a-b}\right )}{d f}-\frac{2 (b c-a d) \tan (e+f x) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right )}{d f (c+d) \sqrt{-\tan ^2(e+f x)} \sqrt{a+b \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.293255, antiderivative size = 213, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {3969, 3832, 3973} \[ \frac{2 \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{d f}-\frac{2 (b c-a d) \tan (e+f x) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right )}{d f (c+d) \sqrt{-\tan ^2(e+f x)} \sqrt{a+b \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3969
Rule 3832
Rule 3973
Rubi steps
\begin{align*} \int \frac{\sec (e+f x) \sqrt{a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx &=\frac{b \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)}} \, dx}{d}-\frac{(b c-a d) \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx}{d}\\ &=\frac{2 \sqrt{a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{d f}-\frac{2 (b c-a d) \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right ) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{d (c+d) f \sqrt{a+b \sec (e+f x)} \sqrt{-\tan ^2(e+f x)}}\\ \end{align*}
Mathematica [A] time = 3.65297, size = 185, normalized size = 0.87 \[ \frac{4 \cos ^2\left (\frac{1}{2} (e+f x)\right ) \sqrt{\frac{\cos (e+f x)}{\cos (e+f x)+1}} \sqrt{\frac{a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \sqrt{a+b \sec (e+f x)} \left ((a-b) (c+d) \text{EllipticF}\left (\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right ),\frac{a-b}{a+b}\right )+2 (a d-b c) \Pi \left (\frac{c-d}{c+d};-\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right )|\frac{a-b}{a+b}\right )\right )}{f (c-d) (c+d) (a \cos (e+f x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.33, size = 355, normalized size = 1.7 \begin{align*} 2\,{\frac{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2} \left ( -1+\cos \left ( fx+e \right ) \right ) }{f \left ( c+d \right ) \left ( c-d \right ) \left ( a\cos \left ( fx+e \right ) +b \right ) \left ( \sin \left ( fx+e \right ) \right ) ^{2}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{\cos \left ( fx+e \right ) }}}\sqrt{{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{ \left ( a+b \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}} \left ({\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) ac+{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) ad-{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) bc-{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) bd-2\,{\it EllipticPi} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},{\frac{c-d}{c+d}},\sqrt{{\frac{a-b}{a+b}}} \right ) ad+2\,{\it EllipticPi} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},{\frac{c-d}{c+d}},\sqrt{{\frac{a-b}{a+b}}} \right ) bc \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{b \sec \left (f x + e\right ) + a} \sec \left (f x + e\right )}{d \sec \left (f x + e\right ) + c}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a + b \sec{\left (e + f x \right )}} \sec{\left (e + f x \right )}}{c + d \sec{\left (e + f x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{b \sec \left (f x + e\right ) + a} \sec \left (f x + e\right )}{d \sec \left (f x + e\right ) + c}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]